package com.qianda.qdminiapp.service;

import com.qianda.qdminiapp.domain.data.QqdRedpacketActivityData;
import com.qianda.qdminiapp.domain.dto.DrawRedpacketDto;
import com.qianda.qdminiapp.domain.model.activity.QqdRedpacketActivity;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 红包活动 服务类
 * </p>
 *
 * @author cw
 * @since 2020-07-15
 */
public interface QqdRedpacketActivityService extends IService<QqdRedpacketActivity> {

    /**
     * 获取红包
     * @param userId
     * @param orderId
     * @return
     */
    QqdRedpacketActivityData getRedpacketActivity(Long userId,Long orderId);

    /**
     * 领取红包
     * @param drawRedpacketDto
     */
    QqdRedpacketActivityData drawRedpacket(DrawRedpacketDto drawRedpacketDto,Long userId);

}
